package vn.student.mylib;

import vn.student.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;

public class ChoosePartnerPopUpMenu implements android.content.DialogInterface.OnClickListener {
	public static void viewDialog(String title, Context ctx,android.content.DialogInterface.OnClickListener onClickListener){
		 
		LayoutInflater li = LayoutInflater.from(ctx); 
		View view = li.inflate(R.layout.choose_partner_popup_menu, null); 
		
		AlertDialog.Builder builder = new AlertDialog.Builder(ctx); 
		builder.setTitle(title); 
		builder.setView(view); 
		
		
		//get the dialog 
		AlertDialog ad = builder.create(); 
		
		ad.show(); 
	}
	@Override
	public void onClick(DialogInterface dialog, int which) {
		// Do notthing.
	}
}
